package org.liquidByte.trafficMustang.androidApp.proxy;

import org.apache.http.client.params.CookiePolicy;

public class ProxyConfig {
	private static ProxyConfig instance;	
	private String contextRoot;
	private String cookiePolicy;
	
	
	private ProxyConfig(String contextRoot, String cookiePolicy) {
		this.contextRoot = contextRoot;
		this.cookiePolicy = cookiePolicy;
	}

	static ProxyConfig getInstance() {
		return ProxyConfig.instance;
	}

	String getContextRoot() {
		return this.contextRoot;
	}
	String getCookiePolicy() {
		return this.cookiePolicy;
	}

	public static void create(String contextRoot) {
		ProxyConfig.instance = new ProxyConfig(contextRoot, CookiePolicy.BEST_MATCH);
	}
}
